package com.jn.erp.web.api.student.entity.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.jn.erp.web.api.student.entity.StudentUser;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import java.time.LocalDate;


@Data
public class StudentBaseInfoDTO {

    private String idcard;
//    private String parentName;
    private Integer stage;
    private String remark;
    // 顾问
    private String passwordEncode;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate joinDate;

//     ---------------
    private Long id;
    private String name;
    @NotBlank(message = "缺少手机号")
    private String mobile;
    private String familyRel;
    private Integer gender;
    @DateTimeFormat(pattern = "yyyy-MM-dd" )
//    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private LocalDate birthday;
    private Long schoolId;
    private Long gradeId;
    private String joinWay;
    private Long counselorId;
    private Long managementId;
    private Long creator;
    @ApiModelProperty(value = "年龄")
    private Integer age;

    @TableField(exist = false)
    private Long orgId;
    // 就读学校
    private String attendSchool;

    // 学生来源
    @TableField(exist = false)
    private String dictValue;


    // 主要联系人
    @TableField(exist = false)
    private StudentUser defaultUser;


    // 备用联系人
    @TableField(exist = false)
    private StudentUser backupUser;

}
